From 48d62068f91856c9f7bfbf078330fd199a40cb76 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 25 Jul 2002 18:19:43 +0000 Subject: [PATCH] (Info-find-index-name): Search for a function definition with a return type. --- lisp/info.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/info.el b/lisp/info.el index f95cd8bf7b6..07304eabb05 100644 --- a/lisp/info.el +++ b/lisp/info.el @@ -1939,6 +1939,10 @@ Give a blank topic name to go to the Index node itself." (if (or (re-search-forward (format "[a-zA-Z]+: %s\\( \\|$\\)" (regexp-quote name)) nil t) + ;; Find a function definition with a return type. + (re-search-forward (format + "[a-zA-Z]+: [a-zA-Z0-9_]+ %s\\( \\|$\\)" + (regexp-quote name)) nil t) (search-forward (format "`%s'" name) nil t) (and (string-match "\\`.*\\( (.*)\\)\\'" name) (search-forward -- 2.30.2